- var own = reply.author.id == user.id

li.media.reply-item(data-id=reply.id, data-comment-id=comment.id)
  .arrow-up
  .arrow-up.inner
  span.pull-left
    img(src=reply.author.avatar).avatar

  .media-body
    h5.media-heading
      - if (own || user.staff)
        .actions
          a.comment-action.link-remove.btn-reply-remove(href="#", title=t('comment-card.remove-argument'))
            i.icon-remove
          - if (own)
            a.comment-action.link-edit.btn-reply-edit(href="#", title=t('comments.edit.argument'))
              i.icon-pencil
      = reply.author.fullName
      small.ago(data-time=(reply.createdAt ? reply.createdAt.toString() : new Date()))
      - if (reply.editedAt)
        small.edited · #{t('comments.edited')}
    .reply-body
      div.reply-text!=markdown(reply.text)
      - if (own || user.staff)
        div.onreply.remove-reply= t('comments.replies.confirm-remove')
          - if (!own)
            br
            =t('comments.removing-argument')
          div.remove-confirm-actions
            a.confirm-reply-remove(href='#')= t('common.ok')
            a.cancel-reply-remove(href='#')= t('common.cancel')
      div.onreply.message
